﻿using Avalonia;
using Avalonia.Controls.Shapes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FantomNext.Helpers
{
    public static class AvaloniaShapeHelper
    {
        /// <summary>
        /// UI框的线的设置。
        /// </summary>
        /// <param name="line"></param>
        /// <param name="point1"></param>
        /// <param name="point2"></param>
        public static void SetLine(Line line, Point point1, Point point2)
        {
            line.StartPoint = point1;
            line.EndPoint = point2;
        }
    }
}
